(function(d, w) {
    var de = d.documentElement,
        ww = de.clientWidth > 750 ? 750 : de.clientWidth,
        fn = function() {
            de.style.fontSize = ww / 7.5 + 'px';
        },
        e = "onorientationchange" in w ? "orientationchange" : "resize";
    fn();
    (function() {
        d.addEventListener("DOMContentLoaded", function() {
            if (!de.style.fontSize) {
                fn();
            }
        }, false);
    })();
    w.addEventListener(e, function() {
        setTimeout(function() {
            var de = d.documentElement,
                ww = de.clientWidth > 750 ? 750 : de.clientWidth;
            de.style.fontSize = ww / 7.5 + 'px';
        }, 200);
    }, false);
})(document, window);